import request from '@/utils/request'

// 按起火单位属性统计
export function getTotalByOrg(query) {
  return request({
    url: '/archives/archives/totalByOrg',
    method: 'get',
    params: query
  })
}
// 按起火原因统计
export function getTotalByReason(query) {
  return request({
    url: '/archives/archives/totalByReason',
    method: 'get',
    params: query
  })
}

// 按火灾规模统计
export function getTotalByScale(tableId) {
  return request({
    url: '/archives/archives/totalByScale',
    method: 'get'
  })
}

// 按火灾规模统计
export function getTotalByYear(query) {
  return request({
    url: '/archives/archives/totalByYear',
    method: 'get',
    params: query
  })
}

